Reakce na pohyb formularem
Otázka od: Macecek Marcel
29. 9. 2004 8:26
Caute,
Nevite nekdo, jak udelat reakci na pohyb formularem ???
Diky
Marcel
Odpovedá: Petr Brant
29. 9. 2004 8:50
Tohle jsem nasel v MSDN:
The WM_MOVING message is sent to a window that the user is moving. By
processing this message, an application can monitor the position of the drag
rectangle and, if needed, change its position.
A window receives this message through its WindowProc function.
Syntax
WM_MOVING
WPARAM wParam
LPARAM lParam;
Parameters
wParam
This parameter is not used.
lParam
Pointer to a RECT structure with the current position of the
window, in screen coordinates. To change the position of the drag rectangle,
an application must change the members of this structure.
Return Value
An application should return TRUE if it processes this message.
---------------------------------
The WM_MOVE message is sent after a window has been moved.
A window receives this message through its WindowProc function.
Syntax
WM_MOVE
WPARAM wParam
LPARAM lParam;
Parameters
wParam
This parameter is not used.
lParam
Specifies the x and y coordinates of the upper-left corner of the client
area of the window. The low-order word contains the x-coordinate while the
high-order word contains the y coordinate.
Return Value
If an application processes this message, it should return zero.
Remarks
The parameters are given in screen coordinates for overlapped and pop-up
windows and in parent-client coordinates for child windows.
RNDr. Petr Brant [brant@dcomm.cz]
http://brant.wz.cz
Nevite nekdo, jak udelat reakci na pohyb formularem ???
Odpovedá: Macecek Marcel
29. 9. 2004 9:20
Diky moc,
Tak ted mi to jde
Nasel jsem totiz v 1001 tipu a triku pro Delphi proceduru, ktera tam ma
message WM_MOVE a stim to nejde ....
Marcel
< Tohle jsem nasel v MSDN:
<
< The WM_MOVING message is sent to a window that the user is moving. By
< processing this message, an application can monitor the position of
the drag
< rectangle and, if needed, change its position.
< A window receives this message through its WindowProc function.
<
< Petr Brant